package com.dykj.fireFighting.web.service.impl;

import com.dykj.fireFighting.common.core.utils.DateUtil;
import com.dykj.fireFighting.web.entity.HaiManSmoke;
import com.dykj.fireFighting.web.mapper.DevHisSmokeMapper;
import com.dykj.fireFighting.web.service.DevHisSmokeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DevHisSmokeServiceImpl implements DevHisSmokeService {
    @Autowired
    private DevHisSmokeMapper devHisSmokeMapper;
    @Override
    public int insertDevHisSmoke(HaiManSmoke haiManSmoke) {
        String tableName="dev_his_smoke_"+ DateUtil.getYearWeek();
        return devHisSmokeMapper.insertDevHisSmoke(tableName,haiManSmoke);
    }
}
